import editorbase

class EditorBase(editorbase.EditorBase):
    def __init__(self, **kwargs):
        super(EditorBase, self).__init__(**kwargs)
        self.MainController = kwargs.get('MainController')
        self.DeviceSystem = self.MainController.DeviceSystem
    def make_child_editor(self, cls, name, **kwargs):
        kwargs.setdefault('MainController', self.MainController)
        return super(EditorBase, self).make_child_editor(cls, name, **kwargs)
